import request from '@/utils/request'

export const Login = (data) => {
  return request.post('/sys/login', data)
}

export const getUserInfo = () => {
  return request.get('/sys/profile')
}

// 修改密码
export const updatePassWord = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
